package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-09-09 10:36
 */
public class Test01 {
    public static void main(String[] args) {
        String str1="aaa";
        System.out.println(str1);
        //public String(String original)
        String str2=new String("aaa");
        System.out.println(str2);
        //public String(char[] value)
        char[] chars={'a','b','c','d','e'};
        String str3=new String(chars);
        System.out.println(str3);
//        public String(byte[] bytes)
        byte[] bytes={97,98,99,100};
        String str4=new String(bytes);
        System.out.println(str4);
        //public String(char[] value,int offset,int count)
        String str5=new String(chars,1,2);
        System.out.println(str5);
    }
}
